$(function () {
    var getIndexNum = 0
    if (sessionStorage.getItem("tabIndexNum")){
        getIndexNum = sessionStorage.getItem("tabIndexNum")
    }
    if (getIndexNum != 0){
        $("#dataCount").hide()
    } else {
        $("#dataCount").show()
    }
    $(".tabs:visible").hide();
    $(".tabs:eq(" + getIndexNum + ")").show();
    $("#tabSelect a.sactive").removeClass("sactive text-white");
    $("#tabSelect a:eq(" + getIndexNum + ")").addClass("sactive text-white");
    $("#tabSelect a").click(function () {
        var indexNum = $("#tabSelect a").index($(this));
        //alert(ind);
        $(".tabs:visible").hide();
        $(".tabs:eq(" + indexNum + ")").show();
        $("#tabSelect a.sactive").removeClass("sactive text-white");
        $(this).addClass("sactive text-white");
        if (indexNum != 0){
            $("#dataCount").hide()
        } else {
            $("#dataCount").show()
        }
        sessionStorage.setItem("tabIndexNum", indexNum);
    })
})